package org.amphiprion.montrictracv4.db.model;

import java.util.Date;

@SuppressWarnings("serial")
public class Ludotheque extends Entity {
	public String name;
	public String image;
	public Date lastSynchro;
	public int count;

	public Ludotheque(String member) {
		this(member, false);
	}

	public Ludotheque(String member, boolean newObject) {
		super();
		id = member;
		if (!newObject) {
			setState(DbState.LOADED);
		} else {
			lastSynchro = new Date();
		}
	}

	@Override
	public String toString() {
		return name;
	}

}
